package com.example.project.entity;

import java.time.LocalDateTime;

import com.example.project.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 需求评论附件对象 t_issue_comment_attachment
 */
public class IssueCommentAttachment extends BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
    /** 主键ID */
    private Long id;
    
    /** 评论ID */
    private Long commentId;
    
    /** 文件名 */
    private String fileName;
    
    /** 文件路径 */
    private String filePath;
    
    /** 文件大小(字节) */
    private Long fileSize;
    
    /** 文件类型 */
    private String contentType;
    
    /** 上传者ID */
    private Long uploaderId;
    
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    
    /** 关联信息 - 上传者姓名 */
    private String uploaderName;
    
    /** 关联信息 - 文件大小的可读表示 */
    private String fileSizeDisplay;
    
    // Getters and Setters
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getCommentId() {
        return commentId;
    }
    
    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }
    
    public String getFileName() {
        return fileName;
    }
    
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    
    public String getFilePath() {
        return filePath;
    }
    
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
    
    public Long getFileSize() {
        return fileSize;
    }
    
    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }
    
    public String getContentType() {
        return contentType;
    }
    
    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
    
    public Long getUploaderId() {
        return uploaderId;
    }
    
    public void setUploaderId(Long uploaderId) {
        this.uploaderId = uploaderId;
    }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    
    public String getUploaderName() {
        return uploaderName;
    }
    
    public void setUploaderName(String uploaderName) {
        this.uploaderName = uploaderName;
    }
    
    public String getFileSizeDisplay() {
        return fileSizeDisplay;
    }
    
    public void setFileSizeDisplay(String fileSizeDisplay) {
        this.fileSizeDisplay = fileSizeDisplay;
    }
}